@layout("/common/_container.html",{js:["/assets/modular/category/category.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">商品分类表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="categoryName" class="layui-input" type="text" placeholder="分类名"/>
                            </div>
                   .         <!--<div class="layui-inline">
                                <select name="类型"  id="isImportant">
                                    <option value="">全部展示类型</option>
                                    <option value="1">首页展示</option>
                                    <option value="0">非首页展业</option>
                                </select>
                            </div>-->
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                                <button id="expandAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>展开所有</button>
                                <button id="foldAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe656;</i>折叠所有</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="categoryTable"  lay-filter="categoryTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">
    <a class="layui-btn  layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
<script type="text/html" id="showTpl">
    {{# if(d.level==1){ }}
        <input type="checkbox" lay-filter="isImportant" value="{{d.id}}" lay-skin="switch"  lay-text="是|否" {{d.isImportant=='1'?'checked':''}}/>
    {{#  }else if(d.level==2){ }}
            <span>否</span>
    {{# } }}
</script>
<script type="text/html" id="pic_big">
        <div id="photo_big" class="photo_big">
            <img src="${ctxPath}{{d.icon}}"  style="height: 20px;width: 20px;" />
        <div>
</script>

@}